﻿@using Board.Models
@{
    Layout = null;
}

<div class="post-back-message">@ViewBag.Message</div>

@if (ViewBag.User != null)
{
    WebUser user = (WebUser)ViewBag.User;
    <text>
        @Html.Hidden("userId", user.UserId+"")
        @using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new {@id = "PasswordForm", @class = "jquery-form"}))
        {
            <text>
                @Html.Password("newPassword") <input type="submit" value="Save"/>
            </text>        
        }
        <script>
            UpdateJqueryForm();
        </script>
    </text>    
}